package com.tutu.book.service.impl;

import com.tutu.book.mapper.BookMapper;
import com.tutu.book.service.BookService;
import com.tutu.commons.entity.Book;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Program: SpringCloud
 * @Description:
 * @Author: JK.TuTu
 * @Version: 1.0
 * @Create: 2022-12-01 13:07
 **/
@Service
public class BookServiceImpl implements BookService {

    @Resource
    BookMapper mapper;

    @Override
    public Book getBookById(int bid) {
        return mapper.getBookById(bid);
    }
}